package com.ruoyi.system.mapper.smy;

import com.ruoyi.common.core.domain.smy.MallGoods;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface MallGoodsMapper {
	public MallGoods selectMallGoodsById(Long id);

	public List<MallGoods> selectMallGoodsList(MallGoods mallGoods);

	public int insertMallGoods(MallGoods mallGoods);

	public int updateMallGoods(MallGoods mallGoods);

	public int deleteMallGoodsById(Long id);

	public int deleteMallGoodsByIds(Long[] ids);

	List<MallGoods> selectMallGoodsPage(MallGoods mallGoods);

	/**
	 * 根据ID集合查询商品记录
	 * @param ids
	 * @return
	 */
	List<MallGoods> selectMallGoodsListByIds(@Param("ids") List<Long> ids);
}
